#ifndef KMYNODEIMAGE_H
#define KMYNODEIMAGE_H

#include "KmyNode.h"
#include <string>
using namespace std;

class KmyNodeImage : public KmyNode
{
public:
    KmyNodeImage(int id, string name, int subimage,
               int x, int y, int z,
               float alpha, int flip, float angle);
    KmyNodeImage(int id, string name, int subimage,
               int sx, int sy, int sw, int sh,
               int dx, int dy, int dw, int dh, int z,
               float alpha, int flip, float angle);
//    ~KmyNodeImage();

    void finalize();

    int getNodeType();
    void render(KmyICanvas *screen);

    void rotate(float a);

    int getFlip();
    void setFlip(int f);

    void setAlpha(float a);

private:
    string name;
    int subimage;
    KmyImagePak *imagepak;
    int sx;
    int sy;
    int sw;
    int sh;

    int dw;
    int dh;
    float alpha;
    int flip;
    float angle;
};

#endif // KMYNODEIMAGE_H
